package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:T_HOSPINFO.java
 * @description	:院区信息
 * @author		:fulianxia
 * @date		:2018年1月18日
 */
@Entity
@Table(name="T_HOSPINFO", schema = "DRGs")
public class HospInfo extends KoalaLegacyEntity {

	private static final long serialVersionUID = -2853521744632476385L;
	
	
	/**
	 * 空构造函数
	 */
	public HospInfo() {
		super();
	}
	

	/**
	 * @param hospCode 院区编码	
	 * @param hospName 院区名称
	 * @param hospShortName 院区简称
	 * @param hospLevel 院区级别
	 */
	public HospInfo(String hospCode, String hospName,
			String hospShortName, String hospLevel) {
		super();
		this.hospCode = hospCode;
		this.hospName = hospName;
		this.hospShortName = hospShortName;
		this.hospLevel = hospLevel;
	}

	//院区编码	
	@Id
	@Column(name = "HOSP_CODE",nullable=false)
	private String hospCode;
	
	//院区名称
	@Column(name = "HOSP_NAME",nullable=false)
	private String hospName;
	
	//院区简称
	@Column(name = "HOSP_SHORT_NAME")
	private String hospShortName;
	
	//院区级别
	@Column(name = "HOSP_LEVEL")
	private String hospLevel;
	
	//院区级别
	@Column(name = "HOSP_ORDER")
	private String hospOrder;
	
	public String getHospCode() {
		return hospCode;
	}



	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}



	public String getHospName() {
		return hospName;
	}



	public void setHospName(String hospName) {
		this.hospName = hospName;
	}



	public String getHospShortName() {
		return hospShortName;
	}



	public void setHospShortName(String hospShortName) {
		this.hospShortName = hospShortName;
	}



	public String getHospLevel() {
		return hospLevel;
	}



	public void setHospLevel(String hospLevel) {
		this.hospLevel = hospLevel;
	}



	public String getHospOrder() {
		return hospOrder;
	}


	public void setHospOrder(String hospOrder) {
		this.hospOrder = hospOrder;
	}


	@Override
	public Serializable getId() {
		return hospCode;
	}

	@Override
	public String[] businessKeys() {
		return null;
	}

}
